import http from 'k6/http';

export const options = {
  discardResponseBodies: true,
  scenarios: {
    web: {
      executor: 'constant-vus',
      exec: 'web',
      vus: 50,
      duration: '5m',
    },
	prime: {
      executor: 'constant-vus',
      exec: 'prime',
      vus: 50,
      duration: '5m',
    },
	apache: {
      executor: 'constant-vus',
      exec: 'apache',
      vus: 50,
      duration: '5m',
    },
  },
};

export function prime() {
  http.get('http://10.244.8.201/', {
    tags: { my_custom_tag: 'prime' },
  });
}

export function web() {
  http.get('http://10.244.0.16/', { tags: { my_custom_tag: 'web' } });
}

export function apache(){
	http.get('http://10.244.0.17/', { tags: { my_custom_tag: 'apache' } });
	
}